home *** CD-ROM | disk | FTP | other *** search
/ Internet Tools (InfoMagic) / Internet Tools.iso / dos_win / winsock / maillist / 93-11.Z / 93-11 / 000097_jnlin@netrd.net.tw_Thu Nov 25 10:25:13 1993.msg < prev    next >
Internet Message Format  |  1993-11-30  |  7KB

  1. Received: from netrd.net.tw by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.06) with SMTP
  2.           id AA16719; Thu, 25 Nov 1993 20:30:03 -0500
  3. Received: by netrd.net.tw (4.1/SMI-4.1)
  4.     id AA02357; Thu, 25 Nov 93 16:25:13 CST
  5. Date: Thu, 25 Nov 93 16:25:13 CST
  6. From: jnlin@netrd.net.tw (Jyun Naih Lin)
  7. Message-Id: <9311250825.AA02357@netrd.net.tw>
  8. To: winsock@sunsite.unc.edu
  9. Subject: TCP socket and sendto() recvfrom()
  10.  
  11.  
  12.      According to the definition of Winsock Ver. 1.1. TCP socket can use
  13. sendto() and recvfrom(), but Netmanage's Winsock.DLL disallows the user to 
  14. use sendto()and recvfrom() on the TCP socket. Why?
  15.  
  16. Lin
  17. From jnlin@netrd.net.tw Thu Nov 25 10:00:50 1993
  18. Received: from netrd.net.tw by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.06) with SMTP
  19.           id AA16731; Thu, 25 Nov 1993 20:30:09 -0500
  20. Received: by netrd.net.tw (4.1/SMI-4.1)
  21.     id AA01795; Thu, 25 Nov 93 16:00:50 CST
  22. Date: Thu, 25 Nov 93 16:00:50 CST
  23. From: jnlin@netrd.net.tw (Jyun Naih Lin)
  24. Message-Id: <9311250800.AA01795@netrd.net.tw>
  25. To: winsock@sunsite.unc.edu
  26. Subject: Question qbout getpeername() and getsockname()
  27.  
  28. Hi,
  29.  
  30.    I have some questions:
  31.  
  32.    (1) When I call getsockname() or getpeername() to get local ip or remote
  33. ip and port. The return value of the port (sin_port) should be network byte
  34. order or host byte order?
  35.  
  36.        I use the Winsock.DLL of "Netmanage Company". Their Winsock.DLL returns
  37. network byte order in getsockname(), but host byte order in getpeername().
  38.  
  39.    (2) Could an UDP socket send data before it binds to an address?
  40.  
  41.        I create an UDP socket and then call WSAAsyncSelect() to set FD_READ,
  42. FD_WRITE, etc, to the UDP socket. Before I call bind(), Netmanage's Winsock.DLL
  43. post a FD_WRITE message to my AP. Is it right?
  44.  
  45.    (3) If I call WSAAsyncSelect() to set FD_CONNECT, FD_CLOSE, etc to a TCP
  46. socket. When I call connect() to connect the TCP socket to an address which
  47. has no socket listening. What event should I receive from Winsock.DLL? 
  48. FD_CONNECT or FD_CLOSE?
  49.  
  50.       I receive FD_CLOSE event from Netmanage's Winsock.DLL. Is it right?
  51. I think it should be FD_CONNECT and the error should be set in the lParam.
  52.  
  53.    (4) What kind of buffer should I prepare before I call WSAAsyncGetXbyY()?
  54. I should allocate a large block and pass it to the system, or I should allocate
  55. spaces for each fields (such as name, aliases, etc). Could anyone give me an
  56. example? 
  57.  
  58.      I call Netmanage's WSAAsyncGetXByY() and it cause a GPF in NMPCIP.DLL.
  59.  
  60.  
  61.      I do some unit tests in Netmanage's Winsock.DLL and find that they do
  62. NOT check many conditions and cause errors. The product seems not to be desinged
  63. fully compactable with Winsock Ver. 1.1.
  64.  
  65.      Thank you for your assistance.
  66.  
  67. Lin Jyun-Naih
  68. ---------------------- jnlin@netrd.net.tw -------------------
  69. From news@samba.oit.unc.edu Fri Nov 26 02:05:47 1993
  70. Received: from samba.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.06) with SMTP
  71.           id AA19553; Thu, 25 Nov 1993 21:16:52 -0500
  72. Return-Path: <news>
  73. Received: by samba.oit.unc.edu (5.65/TAS/11-16-88)
  74.     id AA22226; Thu, 25 Nov 1993 21:08:01 -0500
  75. Received: from GATEWAY by samba.oit.unc.edu with netnews
  76.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  77. To: winsock@SunSite.unc.edu
  78. Date: Fri, 26 Nov 1993 02:05:47 GMT
  79. From: peter@psychnet.psychol.utas.edu.au (Peter R. Tattam)
  80. Message-Id: <peter.697.2CF5647B@psychnet.psychol.utas.edu.au>
  81. Organization: Psychology Department, University of Tasmania
  82. Sender: ses
  83. References: <2cgi22$gvp@darkstar.UCSC.EDU>, <1993Nov19.223307.26461@jlc.mv.com>
  84. Subject: Re: Winsock apps in DOS windows?
  85.  
  86. In article <1993Nov19.223307.26461@jlc.mv.com> jason@jlc.mv.com (Jason T. Nelson) writes:
  87. >From: jason@jlc.mv.com (Jason T. Nelson)
  88. >Subject: Re: Winsock apps in DOS windows?
  89. >Date: Fri, 19 Nov 1993 22:33:07 GMT
  90.  
  91. >In article <2cgi22$gvp@darkstar.UCSC.EDU> banshee@cats.ucsc.edu (Wailer at the Gates of Dawn) writes:
  92. >>
  93. >>Is it possible to call winsock functions from a program running in a dos 
  94. >>window?
  95. >>
  96.  
  97. >Should... I've got Trumpet IRC to work in a DOS window.
  98.  
  99. >============================================
  100. >Jason T. Nelson             jason@jlc.mv.com
  101. >John Leslie Consulting         jtn@mv.mv.com
  102. >Milford, New Hampshire     nelson@mhs.mv.com
  103. >============================================
  104. >"In war there is no substitute for victory."
  105. >             Douglas MacArthur
  106.  
  107.  
  108. Not by winsock.... the dos version is direct to packet driver only.
  109.  
  110. Peter
  111.  
  112. ----------------------------------------------------------------------------
  113. P.Tattam                                    International Phone 61-02-202346
  114. Programmer, Psychology Department           Australia     Phone   002-202346
  115. University of Tasmania, Hobart, Tasmania, Australia
  116. ----------------------------------------------------------------------------
  117. From jnlin@netrd.net.tw Fri Nov 26 04:28:17 1993
  118. Received: from netrd.net.tw ([140.92.61.55]) by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.06) with SMTP
  119.           id AA20177; Thu, 25 Nov 1993 21:28:40 -0500
  120. Received: from [140.92.61.24] by netrd.net.tw (4.1/SMI-4.1)
  121.     id AA19285; Fri, 26 Nov 93 10:28:18 CST
  122. Date: Fri, 26 Nov 93 10:28:17 CST
  123. From: jnlin@netrd.net.tw (Jyun Naih Lin)
  124. Message-Id: <9311260228.AA19285@netrd.net.tw>
  125. Seednet_From: jnlin
  126. To: winsock@sunsite.unc.edu
  127. Subject: Questions and need answers
  128. Cc: jnlin@netrd.net.tw
  129.  
  130. Hi,
  131.  
  132.    I have some questions:
  133.  
  134.    (1) When I call getsockname() or getpeername() to get local ip or remote
  135. ip and port. The return value of the port (sin_port) should be network byte
  136. order or host byte order?
  137.  
  138.        I use the Winsock.DLL of "Netmanage Company". Their Winsock.DLL returns
  139. network byte order in getsockname(), but host byte order in getpeername().
  140.  
  141.    (2) Could an UDP socket send data before it binds to an address?
  142.  
  143.        I create an UDP socket and then call WSAAsyncSelect() to set FD_READ,
  144. FD_WRITE, etc, to the UDP socket. Before I call bind(), Netmanage's Winsock.DLL
  145. post a FD_WRITE message to my AP. Is it right?
  146.  
  147.    (3) If I call WSAAsyncSelect() to set FD_CONNECT, FD_CLOSE, etc to a TCP
  148. socket. When I call connect() to connect the TCP socket to an address which
  149. has no socket listening. What event should I receive from Winsock.DLL?
  150. FD_CONNECT or FD_CLOSE?
  151.  
  152.       I receive FD_CLOSE event from Netmanage's Winsock.DLL. Is it right?
  153. I think it should be FD_CONNECT and the error should be set in the lParam.
  154.  
  155.    (4) What kind of buffer should I prepare before I call WSAAsyncGetXbyY()?
  156. I should allocate a large block and pass it to the system, or I should allocate
  157. spaces for each fields (such as name, aliases, etc). Could anyone give me an
  158. example?
  159.  
  160.      I call Netmanage's WSAAsyncGetXByY() and it cause a GPF in NMPCIP.DLL.
  161.  
  162.    (5) According to the definition of Winsock Ver. 1.1. TCP socket can use
  163. sendto() and recvfrom(), but Netmanage's Winsock.DLL disallows the user to
  164. use sendto()and recvfrom() on the TCP socket. Why?
  165.  
  166.      I do some unit tests in Netmanage's Winsock.DLL and find that they do
  167. NOT check many conditions and cause errors. The product seems not to be desinged
  168. fully compactable with Winsock Ver. 1.1 .....
  169.  
  170.      Thank you for your assistance.
  171.  
  172. Lin Jyun-Naih
  173. ---------------------- jnlin@netrd.net.tw -------------------
  174.